<html>
<head>

<script language="javascript" type="text/javascript" src="<%=request.getContextPath()%>/swordweb/core/jsimport/Sword.js">
</script>

    <script type="text/javascript">
        function init() {
            var res = document.getElementById("SwordPageData").getAttribute("data");
            if ($defined(res)&&parent.onFileCommitAfter) {
                res = JSON.decode(res);
                res["getAttr"] = function(key) {
                    for (var i = 0; i < (res.data || []).length; i++) {
                        var d = res.data[i];
                        if (d["name"] == key) {
                            return d["value"];
                        }
                    }
                }.bind(this);
            }
            if(parent.onFileCommitAfter)parent.onFileCommitAfter(res);
        }
    </script>
</head>
<body onload="init()">
</body>
</html>